package cn.com.shopec.erp.multiChannel.service;

import java.util.List;
import java.util.Map;

import com.jd.open.api.sdk.domain.order.OrderSearchInfo;

/**
 * 京东多渠道对接Service
 * @author Administrator
 *
 */
public interface IJingDongService {
	
	/**
	 * 获取京东授权后accessCode的值
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean getAccessTokenByCode(String code) throws Exception;
	
	/**
	 * 同步京东订单信息
	 * @throws Exception
	 */
	public String syncJDOrderInfo(String startDate,String endDate) throws Exception;
	
	/**
	 * 转换并保存渠道订单信息
	 * @param orderInfos
	 * @return
	 */
	public boolean convertAndSaveOrderInfo(List<OrderSearchInfo> orderInfos);
	
	/**
	 * 调用京东发货接口发货
	 */
	public String doJDdelivery(Map<String,String> info);

}
